package com.ykq.service.impl;

import com.ykq.dao.DeptDao;
import com.ykq.entity.Dept;
import com.ykq.service.DeptSerivce;
import com.ykq.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: 145ssm
 * @description:
 * @author: 闫克起2
 * @create: 2021-12-13 09:20
 **/
@Service(value = "deptService")
public class DeptServiceImpl implements DeptSerivce {
    @Autowired
    private DeptDao deptDao;
    public CommonResult findAllDept() {
        List<Dept> list=deptDao.selectAllDept();
        return new CommonResult(2000,"查询所有部门成功",list);
    }
}
